﻿using System;
using NHibernateDemo.DAL;
using NHibernateDemo.Core;

namespace Web
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Ninja bruce  = Container.Resolve<INinjaRepository>().GetByName("Bruce Lee");
            Response.Write(bruce.Name + " Hit Points: ");
            Response.Write(bruce.HitPoints);
            

        }
    }
}
